package com.miya.demo.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 登录签证官
 *
 * @author Caixiaowei
 * @date 2022/07/08
 */
@Data
public class LoginVO implements Serializable {
    private static final long serialVersionUID = 3737554795471129193L;

    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty("token名称")
    public String tokenName;

    @ApiModelProperty("token值")
    public String tokenValue;

    @ApiModelProperty("是否登录")
    public Boolean isLogin;

    @ApiModelProperty("登录id")
    public Object loginId;

    @ApiModelProperty("登录类型")
    public String loginType;

    @ApiModelProperty("token有效期")
    public long tokenTimeout;

    @ApiModelProperty("session有效期")
    public long sessionTimeout;

    @ApiModelProperty("token session 有效期")
    public long tokenSessionTimeout;

    @ApiModelProperty("token 临时有效期")
    public long tokenActivityTimeout;

    @ApiModelProperty("登录设备")
    public String loginDevice;

    @ApiModelProperty("登录标签")
    public String tag;

    @ApiModelProperty("登录用户资源集合")
    public List<String> permissionList;

    @ApiModelProperty("登录用户角色集合")
    public List<String> roleList;

}
